//
//  LYSystemMessageCell.m
//  artist
//
//  Created by laotang on 16/5/23.
//  Copyright © 2016年 viviyoo. All rights reserved.
//

#import "LYSystemMessageCell.h"
#import "LYMyIntegralListModel.h"
#import "NSDate+Utils.h"
@implementation LYSystemMessageCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    self.iconView.layer.cornerRadius = 25;
    self.iconView.layer.borderColor = [UIColor whiteColor].CGColor;
    self.iconView.layer.borderWidth = 2;
    self.iconView.layer.masksToBounds = YES;
}




- (void)setMessage:(LYMyMessageListModel *)message{
    
    if(_message != message){
        _message = message;
        self.myTitleLabel.text = message.title;
        self.mySubTitleLabel.text = message.content;
        self.timeLabel.text = message.create_time;
        
        
       NSDate *date =  [NSDate dateWithTimeIntervalSince1970:[message.create_time integerValue]];
        self.timeLabel.text = [date string];
    }
}
@end
